80 research outputs found

    Programming in logic without logic programming

    Get PDF
    In previous work, we proposed a logic-based framework in which computation is the execution of actions in an attempt to make reactive rules of the form if antecedent then consequent true in a canonical model of a logic program determined by an initial state, sequence of events, and the resulting sequence of subsequent states. In this model-theoretic semantics, reactive rules are the driving force, and logic programs play only a supporting role. In the canonical model, states, actions and other events are represented with timestamps. But in the operational semantics, for the sake of efficiency, timestamps are omitted and only the current state is maintained. State transitions are performed reactively by executing actions to make the consequents of rules true whenever the antecedents become true. This operational semantics is sound, but incomplete. It cannot make reactive rules true by preventing their antecedents from becoming true, or by proactively making their consequents true before their antecedents become true. In this paper, we characterize the notion of reactive model, and prove that the operational semantics can generate all and only such models. In order to focus on the main issues, we omit the logic programming component of the framework.Comment: Under consideration in Theory and Practice of Logic Programming (TPLP

    Comparison of the Cognitive Emotion Regulation, Locus of Control and Meaning in life in Native and Non-Native Students

    Get PDF
    For downloading the full-text of this article please click here.Background and Objective: One of the critical periods in youth is the studentship period, which is a dynamic transitional period. Several factors can influence university students’ psychological health. They can be generally divided into personal, university, and social factors.The purpose of this study is to compare the cognitive emotion regulation, locus of control and meaning in life of native and non-native students in Mohaghegh Ardabili University.Method: The method of this study is causal-comparative. Statistical population of this study comprised all native and non-native students in Mohaghegh Ardabili University in the year 2015. From among this population, 100 students (50 native students and 50 non-native students) were selected as sample by convenience sampling method. The used tools were Granefski et al.’s cognitive emotion regulation questionnaire, Rutter’s locus of control survey and Steger’s meaning in life questionnaire. The collected data were analyzed through multivariate analysis of variance. All ethical issues were observed in this study and the researchers declared no conflict of interests.Results: The results showed that the average score of external locus of control among non-native students was significantly higher than that of native ones. Furthermore, the mean score of internal locus control was significantly lower for non-native students (p<0.001). Additionally, compared to their non-native counterparts, native students used a larger repertoire of positive emotions and efficient strategies (acceptance, positive refocusing, refocus on planning, positive reappraisal, putting into perspective) (p<0.001). Also, native students registered significantly higher scores in terms of meaning in life in comparison with the non-native students (p<0.001).Conclusion: According to the obtained results, their frequent use of internal locus of control, positive cognition, emotion, and more frequent search for life indicate the better psychological condition and performance of non-native students. It is therefore essential to pay attention to these aspects and try to develop them.For downloading the full-text of this article please click here.Please cite this article as: Sadri Damirchi E, Esmaeili Ghazivaloyi F, Asadi Shishegaran S, Mohammadi N. Comparison of the Cognitive Emotion Regulation, Locus of Control and Meaning in life in Native and Non-Native Students. J Res Relig Health. 2019; 4(5): 5- 16

    Using SWISH to realise interactive web based tutorials for logic based languages

    Get PDF
    Programming environments have evolved from purely text based to using graphical user interfaces, and now we see a move towards web based interfaces, such as Jupyter. Web based interfaces allow for the creation of interactive documents that consist of text and programs, as well as their output. The output can be rendered using web technology as, e.g., text, tables, charts or graphs. This approach is particularly suitable for capturing data analysis workflows and creating interactive educational material. This article describes SWISH, a web front-end for Prolog that consists of a web server implemented in SWI-Prolog and a client web application written in JavaScript. SWISH provides a web server where multiple users can manipulate and run the same material, and it can be adapted to support Prolog extensions. In this paper we describe the architecture of SWISH, and describe two case studies of extensions of Prolog, namely Probabilistic Logic Programming (PLP) and Logic Production System (LPS), which have used SWISH to provide tutorial sites

    A theorem-proving approach to database integrity

    Get PDF
    Imperial Users onl
    corecore